-- GENERATED SPELL FOR [Minor Manifestation of Fire] --


function spell0_5893(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5893', 1000, 1)
end

function spell1_5893(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(8050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5893', 12000, 1)
end

function Sorts_5893(pUnit, Event)
local choix_sorts_5893 = math.random(0, 1)
if choix_sorts_5893 == 0 then
pUnit:RegisterEvent('spell0_5893', 1, 1)
end
if choix_sorts_5893 == 1 then
pUnit:RegisterEvent('spell1_5893', 1, 1)
end
end

function mob5893_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5893', math.random(1500, 3000), 1)
end

function mob5893_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5893_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5893_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5893, 1, 'mob5893_Action')
RegisterUnitEvent(5893, 2, 'mob5893_Leave')
RegisterUnitEvent(5893, 3, 'mob5893_Kill')
RegisterUnitEvent(5893, 4, 'mob5893_Die')
